﻿using Microsoft.AspNetCore.Authorization;
using Microsoft.AspNetCore.Http;
using Microsoft.AspNetCore.Mvc;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Threading.Tasks;

namespace SSO.Email.Api.Controllers
{
    [Route("api/[controller]/[action]")]
    [Authorize]
    [ApiController]
    public class EmailController : ControllerBase
    {

        [HttpPost]
        public string Send163(string msg)
        {
            Console.WriteLine($"send:{msg} time:{DateTime.Now:F}");
            return $"ok send:{msg} time:{DateTime.Now:F}";
        }


    }
}
